<?php $this->pageTitle=Yii::app()->name; ?>


<div>
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
</div>
<br>
<br>
<table>
<tr>
<td>
<div>
<table>
<tr><td>
<div>
	<h3>Football</h3>
	<div>
		<?php echo CHtml::link('<img src = "images/1.jpg">', array("event/viewSingleEvent", 'event_id'=>'1')); ?>
	</div>
</div>
</td>
<td>
<div>
	<h3>Robotics</h3>
	<div>
		<?php echo CHtml::link('<img src = "images/2.jpg">', array("event/viewSingleEvent", 'event_id'=>'2')); ?>
	</div>
</div>
</td></tr>
</table>
</div>
</td>
<?php if(Yii::app()->user->name=='admin'){ ?>	
	<td>
	<div style = "padding-bottom:200px; padding-left:50px"  class="span-5 last">
	<div id="sidebar">
	<div class="portlet" id="yw2">
	<div class="portlet-decoration">
	<div class="portlet-title">Operations</div>
	</div>
	<div class="portlet-content">
	<ul class="operations" id="yw3">
	<li><a href=<?php echo Yii::app()->baseUrl."/index.php?r=user/create"; ?>>Create User</a></li>
	<li><a href=<?php echo Yii::app()->baseUrl."/index.php?r=user/admin"; ?>>Manage User</a></li>
	<li><a href=<?php echo Yii::app()->baseUrl."/index.php?r=event/create"; ?>>Create Event</a></li>
	<li><a href=<?php echo Yii::app()->baseUrl."/index.php?r=event/admin"; ?>>Manage Event</a></li>
	</ul></div>
	</div>		</div><!-- sidebar -->
	</div>
	</td>
<?php } ?>

</tr>
</table>